using System.Collections.Generic;

namespace ObjectTransposeApi.Handler.Expand
{
	/// <summary/>
	internal class NullExpandHandler : AbstractExpandHandler
	{
		/// <summary/>
        internal override IEnumerable<object> Process(object value)
		{
			// nothing to do if the value is not null
			if (value != null)
			{
				return base._successor.Process(value);
			}

			// return the empty enumerator to indicate nothing was found
			return new List<object>();	
		}
	}
}
